inverse Function

public pure function inverse(a) result(rst)

Computes the inverse of a square matrix.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:,:) :: a

The N-by-N matrix to invert.

Return Value real(kind=real64), allocatable, dimension(:,:)

The N-by-N inverted matrix.